import { combineReducers } from 'redux'

import productInfo, { IProductInfo } from './product'
import authInfo, { IDefaultAuthInfo } from './auth'
import memberInfo, { IMemberInfo } from './member'
import orderInfo, { IOrderInfo } from './order'

export interface IStore {
  productInfo: IProductInfo
  authInfo: IDefaultAuthInfo
  memberInfo: IMemberInfo
  orderInfo: IOrderInfo
}

export default combineReducers({
  productInfo,
  authInfo,
  memberInfo,
  orderInfo,
})
